-- GENERATED SPELL FOR [Spiteful Temptress] --


function spell0_20883(pUnit, Event) --@Domination,n/a--
pUnit:FullCastSpellOnTarget(36866,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20883', 6309, 1)
end

function spell1_20883(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(36868,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20883', 1000, 1)
end

function spell2_20883(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(38892,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20883', 1000, 1)
end

function spell3_20883(pUnit, Event) --@Spiteful Fury,n/a--
pUnit:FullCastSpellOnTarget(36886,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20883', 8303, 1)
end

function Sorts_20883(pUnit, Event)
local choix_sorts_20883 = math.random(0, 3)
if choix_sorts_20883 == 0 then
pUnit:RegisterEvent('spell0_20883', 1, 1)
end
if choix_sorts_20883 == 1 then
pUnit:RegisterEvent('spell1_20883', 1, 1)
end
if choix_sorts_20883 == 2 then
pUnit:RegisterEvent('spell2_20883', 1, 1)
end
if choix_sorts_20883 == 3 then
pUnit:RegisterEvent('spell3_20883', 1, 1)
end
end

function mob20883_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20883', math.random(1500, 3000), 1)
end

function mob20883_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20883_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20883_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20883, 1, 'mob20883_Action')
RegisterUnitEvent(20883, 2, 'mob20883_Leave')
RegisterUnitEvent(20883, 3, 'mob20883_Kill')
RegisterUnitEvent(20883, 4, 'mob20883_Die')
